<% include header %>
<% include nav %>

<p style="color: #5bc0de;text-align: center; font-size: 24px;font-weight: bold">温馨提示：点击下面的表格的字段名可进行排序操作</p>
<table border="0" style="margin: 20px auto; border:solid 1px #DDDDDD;width:800px;" cellpadding="0" cellspacing="0" id="tb1">
    <tr>
        <th>序号</th>
        <th>用户id</th>
        <th>心情内容</th>
        <th>发表心情时间</th>
    </tr>
    <% xinqings.forEach(function (xinqing,index) { %>
    <tr>
        <td><%= index+1 %></td>
        <td><%= xinqing._id %></td>
        <td style="line-height: 25px"><%- xinqing.content %></td>
        <td><%= xinqing.second %></td>
    </tr>
    <% })%>
</table>
<script language="javascript" type="text/javascript">
    window.onload = function()
    {
        new TableSorter("tb1");
    }
</script>
<% include footer %>